package org.xdq;

public class One extends Thread {
    public One(String name) {
        super(name);
    }

    @Override
    public void run() {
        for (int i=0;i<100;i++){
            System.out.println(this.getName()+","+i);
            try {
                Thread.sleep(100);//当前线程睡梦1000
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
        }
    }
}
